import request from '@/utils/request'
import httpRequest from '@/utils/httpRequest'
// 查询工艺列表
export function listRouting(query) {
  return httpRequest({
    url: httpRequest.adornUrl('/gy/routing/list'),
    method: 'get',
    params: query
  })
}

// 查询工艺详细
export function getRouting(id) {
  return request({
    url: '/gy/routing/' + id,
    method: 'get'
  })
}

// 新增工艺
export function addRouting(data) {
  return request({
    url: '/gy/routing',
    method: 'post',
    data: data
  })
}

// 修改工艺
export function updateRouting(data) {
  return request({
    url: '/gy/routing',
    method: 'put',
    data: data
  })
}

// 删除工艺
export function delRouting(id) {
  return request({
    url: '/gy/routing/' + id,
    method: 'delete'
  })
}
